<div class="featured">
<ul class="adv">
<?php if (isset($advB[0])) {?>

	<li>
		<p class="bigimgholder">
			<a href="#" title="adtitle"> 
				<?php echo '<img src="/images/advertisement/'.$advB[0]['image'].'" alt="advertisement" width="275" height="450" />';?>
			</a>
		</p>
	</li>
	
	<li>

	<?php }else {?>
	<li>
		<h2>Спонсоры</h2>
	<?php }?>

	<?php foreach ($advM as $key) { ?>
		<p class="imgholder">
			<?php echo '<img src="/images/advertisement/'.$key->image.'" alt="adname" />'; ?>
		</p>
	<?php } ?>
	</li>

</ul>
</div>
